package net.coding.api.test.helper.impl.enterprise;

import net.coding.api.test.helper.BaseGitHelper;

/**
 * Created with IntelliJ IDEA.
 * User: chenfeilong
 * Date: 2018/1/17
 * Time: 15:57
 * Description:
 */
public class EnterpriseGitHelper implements BaseGitHelper {

    @Override
    public String getGitDepotPath(String projectName) {
        return String.format("/p/%s/git", projectName);
    }

    @Override
    public String getArchiveUri(String projectName, String ref) {
        return String.format("/p/%s/git/archive/%s", projectName, ref);
    }

    @Override
    public String getRawBlobUri(String projectName, String ref, String path) {
        return String.format("/p/%s/git/raw/%s/%s", projectName, ref, path);
    }

}
